﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.Unit;

namespace EkStudio.com.bean.xml.RootInterface.Plugin
{
    public class BillExpandJavaCodeItem:BillUiFormatNode
    {


        [Xml("caption")]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }

        [Xml("key")]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        
        [Xml("languageTexts")]
        public string LanguageTexts
        {
            get
            {
                return languageTexts;
            }

            set
            {
                languageTexts = value;
            }
        }
        [Xml("pluginType")]
        public string PluginType
        {
            get
            {
                return pluginType;
            }

            set
            {
                pluginType = value;
            }
        }
        [XmlElement("bind")]
        public string Bind
        {
            get
            {
                return bind;
            }

            set
            {
                bind = value;
            }
        }
        [Xml("showAlter")]
        public bool ShowAlter
        {
            get
            {
                return showAlter;
            }

            set
            {
                showAlter = value;
            }
        }
        [Xml("javaPackage")]
        public string JavaPackage
        {
            get
            {
                return javaPackage;
            }

            set
            {
                javaPackage = value;
            }
        }
        [Xml("callBack")]
        public string CallBack
        {
            get
            {
                return callBack;
            }

            set
            {
                callBack = value;
            }
        }
        [XmlElement("icon")]
        public string Icon
        {
            get
            {
                return icon;
            }

            set
            {
                icon = value;
            }
        }
        [XmlElement("enable")]
        public bool Enable
        {
            get
            {
                return enable;
            }

            set
            {
                enable = value;
            }
        }
        [XmlElement("content")]
        public string Content
        {
            get
            {
                return content;
            }

            set
            {
                content = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            BillExpandJavaCodeItem clone = new BillExpandJavaCodeItem();
            clone.Key = this.key;
            clone.Caption = this.caption;
            clone.LanguageTexts = this.languageTexts;
            clone.PluginType = this.pluginType;
            clone.Bind = this.bind;
            clone.ShowAlter = this.showAlter;
            clone.JavaPackage = this.javaPackage;
            clone.CallBack = this.callBack;
            clone.Icon = this.icon;
            clone.Enable = this.enable;
            clone.Content = this.content;
            return  clone;
        }

        public override string ToString()
        {
            return "JavaExp";
        }


        private string key = "";
        private string caption = BeanUtil.PLUGIN_CAPTION_VALUE;
        private string languageTexts = "";
        private string pluginType = BeanUtil.JAVA_PLUGIN_TYPE_EVENT;
        private string bind = "";
        private bool showAlter = false;
        private string javaPackage = "";
        private string callBack = "";
        private string icon = "";
        private bool enable = true;

        private string content = "";
    }
}
